<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_表格练习</title>
</head>
<body>
  <table border="1px" style="border-collapse: collapse">
    <!-- table row-->
    <tr>
      <th >编号</th>
      <th>姓名</th>
      <th>课程</th>
    </tr>
    <tr>
      <th style="text-align: center">1</th>
      <th>伟超</th>
      <th>框架</th>
    </tr>
    <tr>
      <th style="text-align: center">2</th>
      <th>晓宇</th>
      <th>项目1</th>
    </tr>
    <tr>
      <th style="text-align: center">3</th>
      <th>硕博</th>
      <th>sre</th>
    </tr>
  </table>
  <h4>合并单元格</h4>
  <table border="1px">
    <tr>
      <td>1-1</td>
<!--      跨列：横着合并，从当前单元格开始，享有合并n个单元和，n包含当前单元格，并合并的单元格一定的删掉！-->
      <td colspan="3">1-2</td>
<!--      <td>1-3</td>-->
<!--      <td>1-4</td>-->
    </tr>
    <tr>
      <td>2-1</td>
      <td>2-2</td>
      <td>2-3</td>
      <td>2-4</td>
    </tr>
    <tr>
      <td>3-1</td>
      <td>3-2</td>
<!--      跨行：竖着合并，从当前单元格开始，向下合并n个单元格，n包含当前单元格，被合并的单元格一定要删掉-->
      <td rowspan="2">3-3</td>
      <td>3-4</td>
    </tr>
    <tr>
      <td>4-1</td>
      <td>4-2</td>
<!--      <td>4-3</td>-->
      <td>4-4</td>
    </tr>
  </table>
<h4>合并单元格</h4>
  <table border="1px" style="border-collapse: collapse">
    <caption>购物车</caption>
    <tr>
      <td><b>商品编号</b></td>
      <td  style="text-align: center"><b>商品名称</b></td>
      <td><b>商品价格</b></td>
    </tr>
    <tr>
      <td>1</td>
      <td>荣耀X60</td>
      <td>2601</td>
    </tr>
    <tr>
      <td>2</td>
      <td>三折叠 怎么着都有面</td>
      <td>27399</td>
    </tr>
    <tr>
      <td>总价：</td>
      <td colspan="2">30000</td>
    </tr>
  </table>
</body>
</html>